import request from '@/utils/request'

// 查询配方颗粒列表
export function listTdmPeiFangKeLi(query) {
  return request({
    url: '/tdm/TdmPeiFangKeLi/list',
    method: 'get',
    params: query
  })
}

// 查询配方颗粒详细
export function getTdmPeiFangKeLi(id) {
  return request({
    url: '/tdm/TdmPeiFangKeLi/' + id,
    method: 'get'
  })
}

// 新增配方颗粒
export function addTdmPeiFangKeLi(data) {
  return request({
    url: '/tdm/TdmPeiFangKeLi',
    method: 'post',
    data: data
  })
}

// 修改配方颗粒
export function updateTdmPeiFangKeLi(data) {
  return request({
    url: '/tdm/TdmPeiFangKeLi',
    method: 'put',
    data: data
  })
}

// 删除配方颗粒
export function delTdmPeiFangKeLi(id) {
  return request({
    url: '/tdm/TdmPeiFangKeLi/' + id,
    method: 'delete'
  })
}
// 审核
export function to_examine(id,shenHe,pinZhong) {
  const data = {id, shenHe,pinZhong}
  return request({
    url: '/admin/examine',
    method: 'put',
    data:data
  })
}
